successful registration now redirects to login page