added functionality to only allow users to create restaurants when signed in