updated users and projects controller for validations