Change URL to api/register and api/login