Add Login logic.