how to add a login widget for membership

Is there a way to provide a login widget for a site with Membership? Ideally it will take them to their account page or their protected content?