Update index.php

added POST variable for 'role'
added array "roles"

empty role does not break index.php, it just includes the empty img tag