Added login functionality as well as several views