use alerts instead of custom text for errors on registration page