Implemented auth system.