Simple authentification system with ajax saved form