Added validations for presence of null: false values where they were missing and added code to layout.html.erb to display validation error messages