Implemented validation for register screen