fixed the query (hql) in UserModel for getUserBySessionkey