simple getpost and error handling with express