Adding user authorization and Foundation