Fix typo + update error checking in form