Fixed input types and added ajax request