generic logincheck added