I figured it out the issue. I already had a a personal github account linked to sourcetree. When i deleted the personal github account and added the work account it worked fine.
- Go to Tools -> Options
- Click on Authentication Tab
- Delete the other github account and add the new one