added mongoose helpers for authentication