contract code with authentication