some changes for login