fixed Filling optional fields at registration