added form validation of user add dialog
added full functionality