Client validation not working