added username/password check from command line