Wire up login logic