data validation/cookie/ajax/jquery