created a way to prevent blank submissions