Core module for authentication