Updated error handling for bad password