Ugly hack for basic login from config file, needs extreme makeover