Updated login to now give a "nice" error message if the user fails to login