Improve User::equals

use binary comparing with and instead of IF stage