password email bug fix