creating server side login authentication using passport module