Authentication helper functions to take access decision for different types of users.