Added some basic error handling in the login screen