added empty name error check to submit location