fixed razor authentication issue