registration flow fixed, preferences stored to DB