checking for the user when login