added if statement for photo on inventory page

html produces a broken image without the  if statement
fixed error on group creation

added code to create moderator