added experimental login mode