cleaned up error handling for username not found