Code window improvements and error handling for user not found