fix jquery selector and validation