Adding controller methods to add, update, delete and validate