redirect to register page is working a bit