fix the bug that cannot log in
add privilege function to view