Added a bit of error handling to create expense