Login mock and check