Fixed error login

problems with error login, made asinc
fix #1

module validates schema values