Added redirect to registration page if logged in.