fixed bug where users @ad cannot log in