move navbar to application template and rationalize login