Complete the function of user_index
Complete the function of logout
Complete the function of login