Moved authentication module into Auth class.