added security fns & enforced them upon the usenames