fix in function login