registering automatically logs you in