Bug fix for password reset.