added validations
Updated controller tests to pass on create on update