loging in and sharing implemented