Some initial validation added
Learning how to get elements inside the dialog
Some improvements on validation