Added authentication
Split into partials, added routes and proper login