implemented authentication system and basic layout