fixed models, manager authentication working