added some validation and generate password button to add admin modal.