Added code captcha and moved session to separate class