unify login and app pages