Moving functions checkManager from generic_function to UserDaO