add helpers for authentication