braing cramp cant get form input to pass data to function