(refactor) Add Auth state, template. Redirect to browse after auth