Added Error Handling on Search page