Replaced auth form.But fix a bugs.