submit button properly activates