Added methods to the Validate object and created the server-side lead validation function in Leads_Controller