Added proper memory scheme for authentication handler module.