Validation loop added, other previous known issues need to be addressed
and validation loop needs to be tweaked and bugtested