Error handling and styling