switch to new syntax
fix authentication crash

caused by calling create_person_from_omniauth on a nil user, which in
turn is caused by the user_id ref being to a row that doesn't exist, or nil

added a check for the authentication.user to exist, and handle the case
where the user is nil