added user functionality to only let users create or edit a restaurant