new login method
all working if preload setting is checked