adding validation method
adding stuff