Added login logic and basic layout.