fixed user log in bug