products controller can now respond with JSON format
added product validations