Fix NameError on API Controller

Because `before_filter :login` introduces `@member` instead of `member`, we should use it.