Fixed wrong behaviour of the registration form.