Implemented Dialogs and Cheking empty fields