changed post fragment to return pin