Refactored users_controller.rb, fixed handling of usernames consisting only of spaces.