before moving passport login to separate file