Added validation in usermgr. Unfinished.