Index: /WAeUP_SRP/trunk/skins/waeup_student/add_student.py
===================================================================
--- /WAeUP_SRP/trunk/skins/waeup_student/add_student.py	(revision 1415)
+++ /WAeUP_SRP/trunk/skins/waeup_student/add_student.py	(revision 1416)
@@ -47,11 +47,16 @@
 elif psm == 'valid':
     pass
-##firstname = ds.get('firstname')
-##middlename = ds.get('middlename')
-##lastname = ds.get('lastname')
-##email = ds.get('email')
-##matric_no = ds.get('matric_no')
-##study_course = ds.get('study_course')
-##level = ds.get('level')
+matric_no = ds.get('matric_no')
+res = context.students_catalog(matric_no = matric_no)
+psm = "Student with matric_no %s exists with Id: %s" % (matric_no,res[0].id)
+if res:
+    return context.add_student_form(rendered = rendered,
+                                 psm = psm,
+                                 #psm = "%s, %s" % (psm,ds),
+                                 mode = mode,
+                                 formaction = "add_student",
+                                 button = "add",
+                                 ds = ds,
+                                 )
 dict = {}
 dict.update(ds)
