added errors for registration page