Revert "working on persisting users"

This reverts commit 19e2fa567e3056827ffc2aa345b5c660863dd5b7.
Revert "Revert "working on persisting users""

This reverts commit 7a157b850ec2855484d5a1edf7c306af20744c45.
fixed errors