bug fixing for password recovery