Added login flag