Using this plugin you can add a login/logout form in posts and pages using [login] shortcode. You can also add a login/logout form in a widget