Updating update method to run validation.