Handling an invalid access code