fixed error that was logging users out on booking an event