made email field mandatory only when generate password is checked for create user

Made password field mandatory when generate field is unchecked
Made input for password as type="password" to hide the passphrase
Applied client side validation to password and email...

the issue raised by sangamesh related to create user can be closed..