added error messages for not having a username or password