Changed to redirect to login page after successful registration