Checks name is of valid length