register forms now works with ajax