fix login without javascript