Added category input and validations to edit and create forms. Fixed flash messages styling.