added category validation and ui changes