fixed problem of login user validation