Make filter to authenticate user.