validation of registration page