add clear form function and more messaging