login process seems to be working correctly now