Added verify pin method and refactored tasks. Rspec specs included