added error message on missing username or password