Fixed login error, added error displays