Center loading gif on login/register/logout change