add validator
change api key generate logic
API tests