Fixed the build so that there is a refference to the System.Web.Security namespace for the register.aspx.cs file