adding passport functionality