basic login and sharing functionality