Error handling and styles