adds alerts so that users know about login or other form errors