changed javascript in contact validation