How to use a map in a registration form?