sweepstake javascript validations