update_attributes in controller is not working