some bugs fixed - check key updated
check and verify user
code changed to key in html form