Expanding Login Code