Submit button is not working properly.