handles error responses from server and alerts to user res.error.message
Merge pull request #170 from FernandaS/master

handles error responses from server and alerts to user res.error.message