Fixed auth_codes bug within the data base adding None type to it