Front End Registration Form Code – Password Field Not Saving

$user_data has incorrect array key for password. It needs to be user_pass instead of user_password. For more reference please check out wp_insert_user()