Added flash messages to category and user models