Added authentification, replaced javascript with html5 functionnality