added new feature to test for error raise during update action if fields are filled in invalidly. made changes to controller to make test pass