added passport functionality