corrected in form_register to fix login error.