Made login/register timeout after 3 seconds