[WIP] makes configurable email domain restriction for signin

- makes email domain restriction for signin configurable
- fix error displayed when trying to insert already existing user with `server/scripts/create-admin-user.js`