added auto-login upon registration