Finishing activity on successful submit