Modifies registration controller to use model function when editing restaurant