refactored auth folder