updated deprecated usage of body parser and morgan