Bug fix for password reset authorization check.