In your Controller you need to add HTTPGET method for NEWLOGIN Action
Change your controller like below...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SimpleLogin.Models;
namespace SimpleLogin.Controllers
{
public class LoginsController : Controller
{
public ActionResult Index()
{
return View();
}
[HttpGET]
public ActionResult NewLogin()
{
return View();
}
[HttpPost]
public ActionResult NewLogin(LoginModel m)
{
if (m.User_ID == "admin" && m.Password == "pass")
{
}
return View();
}
}
}