fixing to validate the code

validation gives error eve though its correct