Added validation for register screen