adds auto-login on registration