Created the main core of the auth_serv