now displaying user galleries, saving it into db, restricting some pages for non-users