try catch on login.