<?php wp_insert_user( $userdata ); ?>
<?php wp_get_current_user(); ?>
<?php wp_login_form( $args ); ?>