added login verification and command line options