typing in parentpostlogin or teacher now redirects back to index if not logged in