Typo fix
Moved login flag earlier in the statement.