Ternary expression for logins.