Add validations for galleries forms

* Add validations to gallery model
* Check database query success in galleries#create and galleries#update
* Display errors in galleries form partial
* Add errors partial to views/application/
Add validations for images forms

* Add validations to image model
* Add logic in images#create and images#update
* Render errors partial in images forms