added conditions to the partials to prevent non users from having access.