some changes to login