updated with select winner and login index page (error fixed)