Adding basic registration validation