Resolved null issue on permissions page and updated EF