Add project func and some changes in authorization