Why are my forms behaving weirdly at times?