add auto registration to login