keeps login button from sending multiple requests at a time