Refactored login into author