Fixed problem when input li had errors inside