redirect user to login page if they try to change view status and are not logged in