fixed user login problem