setup for passport and ability to log in with self closing popup window