implementing passport auth methods and reorganizing folders