$(function()
{
	$("form").submit(function()
	{
		c = 0;
		$("p.error", $(this)).remove();
		$("span", $(this)).removeClass("error");
		($("input[name=first_name]").val() == "") ? $("input[name=first_name]").parent().addClass("error") : c++;
		($("input[name=last_name]").val() == "") ? $("input[name=last_name]").parent().addClass("error") : c++;
		($("input[name=college]").val() == "") ? $("input[name=college]").parent().addClass("error") : c++;
		($("input[name=email]").val() == "") ? $("input[name=email]").parent().addClass("error") : c++;
		if (c != 4)
		{
			$("p", $(this)).after('<p class="error">Please enter or correct the fields below...</p>');
			return false;
		}
	});
});