Added account login api and templatized all view templates.