Refactored authentication process.