fixed previous removal of login/out on master file. added user ownership functions