Added loggedIn #1013 to customer rule builder.