Hi,
You can start with replacing all those
else if with a
switch case statement...still the idea why you're doing that is not clear
debugger;
not sure why you need this?
alert("Please Enter Valid Email ID And Password")
might better be returned from server ex: info.ErrorMessage
Normally on returning a json object, would access fields (can be simple fields, nested objects, arrays) ex: info.SomeProperty