Added functionality for setting (and confirming) password.