Enhancing security with two-factor authentication