Fixed the registration form when editing access levels and/or periods