added null check when auth via command line