fixed blank check for messages in users_controller