login functionality changes implemented