added validate salary method
all set up