Changed input type, corrected errors