func; logincheck(), permissions(), head: erroroff