Inserted error and success messages for photo uploads