Added error handler for invalid currency