deleted authpage and fixed authentication code