Index: /WAeUP_SRP/base/Widgets.py
===================================================================
--- /WAeUP_SRP/base/Widgets.py	(revision 2355)
+++ /WAeUP_SRP/base/Widgets.py	(revision 2356)
@@ -1426,6 +1426,6 @@
             if ok >= 1:
                 #screening_type = self.REQUEST.form.get('screening_type','unknown')
-                #screening_type = datastructure['screening_type']                
-                
+                #screening_type = datastructure['screening_type']
+
                 if self.REQUEST.traverse_subpath:
                     screening_type_request = self.REQUEST.traverse_subpath[0]
@@ -1441,6 +1441,5 @@
                           and screening_type_request != 'manage':
                         err = "You used the wrong application form!"
-                        s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,
-                                                                                           applicant.screening_type))
+                        s_logger.info('%s tried to use %s application form but has applied for %s' % (ref,screening_type_request,applicant.screening_type))
                         break
                     if not applicant.pin:
@@ -1824,5 +1823,5 @@
                                              info['current_filename'])
         return info
-            
+
     def getImageInfo(self, datastructure): ###(
         """Get the file info from the datastructure."""
@@ -2001,5 +2000,6 @@
                 max_size_str = self.getHumanReadableSize(self.size_max)
                 err = 'This file is too big, the allowed max size is ${max_size}'
-                logger.info('%s tried to upload picture with size %dk' %(datastructure['reg_no'],int(size)/1000) )
+                member_id = str(self.portal_membership.getAuthenticatedMember())
+                logger.info('%s tried to upload picture with size %dk' %(member_id,int(size)/1000) )
                 err_mapping = {'max_size': max_size_str}
                 return self.validateError(err, err_mapping, datastructure)
