fixes on validate registration form