added verification system. global variables not working correctly yet