Fixing this form was a key element to enable authorization. Also by the way I refactor it to use of bootstrap-forms.