added a simple jQuery validation