change check auth at jade page