add limit to relation. Add loggin facility to session