added error handling for when username searched for doesn't exist