fixed login issue when creating new account.