The option to accept a Story is only available after all Tasks associated with the Story have been completed. When all the Tasks in a Story have been completed, the status of the Story changes to Completed.
At the end of the Sprint, the completed Stories are reviewed and accepted by the Product Owner.
Watch how to do it: Accepting User Stories.