Added simple registration validation