Added members middleware and member signing method.