this is my application users table:-

USERID NOT NULL VARCHAR2(6)
USERNAME NOT NULL VARCHAR2(20)
PASSWORD NOT NULL VARCHAR2(10)
LAST_LOGIN DATE

I need to creata a form and a push button where my code reads the userid and password from my users table and if successful should go to other block.