error messages on registration page work