removing alerts and showing error text instead