refactored handleSubmit
refactored handleSubmit

 - reduce indentation by leaving the function early if subsequent code doesn't need to be executed

mlenkeit/animated-octo-sansa,mlenkeit/animated-octo-sansa