fixed print_stock method and added stock field validations