Hello Gaurav,
From Visual Studio 2012 there is ready made controls for Login and Registration and you don't need to do anything. You can customize it also as per your need.
Go through the below links :
http://www.mikesdotnetting.com/article/75/simple-login-and-redirect-for-asp-net-and-access
http://www.asp.net/web-api/overview/security/individual-accounts-in-web-api
http://www.asp.net/web-api/overview/security/external-authentication-services
https://msdn.microsoft.com/en-us/library/ms178329.aspx
https://msdn.microsoft.com/en-us/library/aa478962.aspx
Hope this will help you.
Regards,
Nirav Lalan
DNS Gold Member
"If you can dream it, you can do it."