Thanks for your reply. Actually I created a brand new username and password into the table. Does the code below gets it from the table?
un := GET_APPLICATION_PROPERTY( USERNAME );
pw := GET_APPLICATION_PROPERTY( PASSWORD );
cs := GET_APPLICATION_PROPERTY( CONNECT_STRING );
I am afraid the FMB file is out dated!
"You are not allowed to login because you entered your username/password 2 times"
is not a standard Forms message. You are using some custom login code. Nowhere in the code you posted here shows where this error message is raised. So, it is not possible to say why you are getting this message.
You first need to identify the code where this message is raised, then you can look for a solution.