Auto Login after membership registration

Hi,

I am using membership 2 plugin for registration. After registration process, it lands me to a thank you page, with a link to Dashboard Page. On Dashboard, I have a link of Manage My Page which gives a 404 error when clicked for once. But when I refreshes the page, it takes me to the login screen and after login with correct credentials, It takes me to dashboard page and now when I click on manage my account page.. It lands me to the page properly.

I want that, I should be auto logged in after the registration process and it should land me to manage my account page, when clicked from dashboard.

I have understood that, 404 is appearing because, the user is not logged in directly after registration and after reloading the page it takes me to the login page.

Could you please help..