Form inputs are cleared after successful adding of a new word