fixed the login issue

thanks to jeff