refactored auth views