added function for the mood in the models and in the views (saved the mood that is written in the form on the database