added pretty error messages for login