Added login/register page and functions