please help me to rectify the error.. two conditions do not get vaidated