Added failure and success message rendering