Refactoring - Authentication Controller