I can tell you that when I hard code the username and password values at the beginning of your code (and build tables to emulate your environment), I have no problem reaching the menu portion of your code. Have you tried to perform a debug print of the values that you are getting from the phone/WAP emulator for the username and password pair?