Add attribute accessor and authenticate method