added user permissions and admin and error controllers/models/views