changed modifiedBy to interger in schemas.removed loggedinUser function from base controller.