Started login's logic.