Added validation to render and gave default value to params