Added simple validation on client for register data