added some changes for login.