Check if err message is null in login.