add relation between user and events and a before_filter for logged in user in events