Update main program to handle invalid username/passwords.