Persisting users in database, allowing login/logout and setting/getting usermeta values