Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 8626)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 8627)
@@ -1034,6 +1034,7 @@
                     self.flash(_('No application record found.'))
                     return
-                elif applicant.password is not None:
-                    self.flash(_('Your password has already been set. '
+                elif applicant.password is not None and \
+                    applicant.state != INITIALIZED:
+                    self.flash(_('Your password has already been set and used. '
                                  'Please proceed to the login page.'))
                     return
Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 8626)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 8627)
@@ -489,4 +489,5 @@
         self.assertEqual(self.browser.headers['Status'], '200 Ok')
         self.fill_correct_values()
+        self.assertTrue(IUserAccount(self.applicant).checkPassword('apwd'))
         self.browser.getControl("Save").click()
         self.assertMatches('...Form has been saved...', self.browser.contents)
@@ -931,20 +932,23 @@
         self.assertTrue('No application record found.'
             in self.browser.contents)
-        # Even with the correct firstname we can't register because
-        # password has already been set.
+        # Even with the correct firstname we can't register if a
+        # password has been set and used.
+        IWorkflowState(self.applicant).setState('started')
         self.browser.getControl(name="form.firstname").value = 'John'
         self.browser.getControl(name="form.reg_number").value = '1234'
         self.browser.getControl("Get login credentials").click()
-        self.assertTrue('Your password has already been set.'
+        self.assertTrue('Your password has already been set and used.'
             in self.browser.contents)
-        # We unset the password and try to register again.
-        IUserAccount(
-            self.app['applicants']['app2009'][
-            self.applicant.application_number]).context.password = None
+        #IUserAccount(
+        #    self.app['applicants']['app2009'][
+        #    self.applicant.application_number]).context.password = None
+        # Even without unsetting the password we can re-register if state
+        # is 'initialized'
+        IWorkflowState(self.applicant).setState('initialized')
         self.browser.open(self.container_path + '/register')
         # The firstname field, used for verification, is not case-sensitive.
         self.browser.getControl(name="form.firstname").value = 'jOhn'
         self.browser.getControl(name="form.reg_number").value = '1234'
-        self.browser.getControl(name="form.email").value = 'xx@yy.zz'
+        self.browser.getControl(name="form.email").value = 'new@yy.zz'
         self.browser.getControl("Get login credentials").click()
         # Yeah, we succeded ...
@@ -955,5 +959,5 @@
         results = list(
             cat.searchResults(
-            email=('xx@yy.zz', 'xx@yy.zz')))
+            email=('new@yy.zz', 'new@yy.zz')))
         self.assertEqual(self.applicant,results[0])
         return
