Change sessions timeout to setInterval from setTimeout, create checkFormChange function for multiple use