added basic login system and base template