Added redirect to login page after registration.