User type definition and login functions for molecuel CMS.