remove empty space
validates and hides fields correctly