In MVC i am trying to implement user authentication. Credentials are stored in SQL table. I am having login page, when user enters credentials I am calling below JavaScript