Added better error handling to repository and twitter forms.