Completed Auth module (VERY badly . . .)