added contact entity and some login stuff in contactmanager