Added logic to generate slug to store()