user is redirected to register page if not already logged in