Adding ajax to connect form