added conditional to check if current_user is nil for event and movement creation