Make checks to prevent crashing when logging into servers.