some changes at login