ensured users are redirected to dashboard upon registration