password set by user function, and mails