updated createDog Function against hackers xD