Handling errors on AddFormulaActivity