with hibernate login check