added really basic validation for register page