security changes

*fixed* login and logout
*update* added unique contraint for registration
update ODM

*add* unique constraint for username
update base

*add* baename list for any user