update login code for kenny's review