Fix bug ajax register homepage