Added server connection check and login error message