Save the correct value of study type, clear error messages after saving

Reviewer: Tiffany Go

Issue: GCP-8708