add auth function, userMain, protector.php. Corrected /conrollers