Added login/register buttons and redirects as needed