store email & check for user in db & fix #1693

The csv file will now only be used for the initial setup. If a user
already exists in the db the file won’t be checked. If no csv-file is
used, the $uid is checked for a valid email-address and will be stored
if the check was positive.