add a redirect for not published profiles
add unit test for showing unpublished profile only for authorized users
refactor the show view for authorized users
add tests for the modified show method in profiles