Added validation for negative numbers in salary