Added error handling with bootstrap alerts