Fixed input to only accept proper formatting.