Many bugs correction for the authentification system