added error checking to login
added menu