ensure login logic for lokit