implemented authentication against mongo storage