Changed ProductController for handling not allowed null values