redirect to register page if login required