fixed bug in auth login