Fixed login from commandline