moved ip request to logincheckfunction