Fixed bug, If current_user is nil then access note only page or user profile page