added code to only allow loged in users to create places