added login/password check and command line usage