POJ login & submit
complete poj login and submit
same method as uva