chaiwat update function modal login page