corrected in form_register to fix login error.
Merge pull request #30 from akioys/develop

corrected in form_register to fix login error.