Primefaces added. Validation rules corrected.