error handling using bootstrap alerts