Changed the form error from text to js alert