Trouble with conditioning and formatting form correctly