Index: WAeUP_SRP/trunk/skins/waeup_student/check_admission.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_student/check_admission.py	(revision 993)
+++ WAeUP_SRP/trunk/skins/waeup_student/check_admission.py	(revision 997)
@@ -48,4 +48,20 @@
 elif psm == 'valid':
     s_id = ds.get('s_id')
+    if is_anon and not s_id:
+        return context.check_admission_pin_form(rendered = res,
+                                 psm = "You are not allowed to call this form in this context. Please try to log in.",
+                                 #psm = "%s, %s" % (psm,ds),
+                                 firstlayout = True,
+                                 lastlayout = True,
+                                 ds = ds,
+                                 )
+    elif not is_anon:
+        return context.check_admission_pin_form(rendered = res,
+                                 psm = "You are already logged in!",
+                                 #psm = "%s, %s" % (psm,ds),
+                                 firstlayout = True,
+                                 lastlayout = True,
+                                 ds = ds,
+                                 )
 ##  
 ##    email = ds.get('app_email')
@@ -64,2 +80,3 @@
     url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
     return redirect(url)
+
