Refactored auth to be logged_in