removing unused import
adding json validation decorator for endpoints in #52