Adding login/register templates and some changes