firstly check this correctly
this will do the trick for validation