add config before processing logincheck