Added flash message div to layout and discovering bug o Single Table Inheritance. Maybe we need to reset the type values.