switched login method flag back